<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<link rel="stylesheet" type="text/css" href="__APP__/style/thickbox.css"/>
<script type='text/javascript' src='__APP__/js/jquery.js'></script>
<script type="text/javascript" src="__APP__/js/thickbox_plus.js"></script>
<title>轻国轻城</title>
<style type="text/css" >
*{
	margin:0;
	padding:0;
	font-size:14px;
	}
div{
	overflow:hidden;
	}
#box{
	width:100%;
	height:100%;
	background-color:#eeeeee;
	}
#top{
	 width:100%;
	 height:70px;
	 background-color:#50abff;}
#down{
	 width:1100px;
	 margin-left:auto;
	 margin-right:auto;
	 background:#FFF;
	  }
#left{
	 width:200px;
     float:left;
     height:750px;
	 background-color:#a1d2ff;
	 }
#right{

	 width:895px;

	 float:left;}
#nav{
    margin-top:50px;
    margin-left:40px;


}
li{
	font-size:18px;

	list-style:none;
	height:30px;}
li a{  text-decoration:none;
    color:#666;}
li a:hover{
	color:#F60;
	background-color:#ffb;
	}
img{
 border:0px;
}


</style>
<script type='text/javascript'>


</script>
</head>
<div id="box">
	<div id="top">
    	<div style=" width:1000px; margin-right:auto; margin-left:auto;"><a style="font-size:50px; color:#FFF; font-family:'Palatino Linotype', 'Book Antiqua', Palatino, serif;">GDQY_MSG</a></div>
        </div>
    <div id="down">
        <div id="left">
              <div id='nav'>
                 <li><a href='#'>首页</a></li>
                 <li><a href='__ROOT__/admin.php/User/user_list'>用户管理区</a></li>
                 <li><a href='__ROOT__/admin.php/MsgCate/Msg_cate'>信息分类管理</a></li>
                 <li><a href='__ROOT__/admin.php/Msg/Msg'>信息管理区</a></li>
                 <li><a href='#'>好友管理区</a></li>
                 <li><a href='#'>系统管理员</a></li>
                 <li><a href='#'>系统配置参数</a></li>
                 <li><a href='#'>系统动态图像</a></li>
              </div>
        </div>


<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<script type='text/javascript'>
$(document).ready(function(){

  $(".box").toggle(
   function () {

     $("input:checkbox").attr("checked",true);
   },
   function () {

     $("input:checkbox").attr("checked",false);
   }
);


})
</script>

<style style='text/css'>

table {
  background: #FFF;
  border-top: 10px solid #FFF;
  border-bottom: 10px solid #FFF;
  width: 99%;

}

th {
  line-height: 24px;
  background: #BBDDE5 url("__APP__/images/bg_repx.gif") repeat-x;
  white-space: nowrap;
    line-height:38px;
  font-weight:bold;
}

td {
  padding:5px 5px 5px 0;
  text-align:left;
  font-size:12px;
}
a{
  text-decoration:none;

}
th a{
  color:#888;
}
select{
font-size:12px;

}
input{
font-size:12px;

}


</style>
        <div id="right">
        <div style='width:900px;height:5px;background-color:#a1d2ff;margin-top:8px;'></div>
        <div id='search' style='background-color:#ddd;font-size:12px;'>
        <form name='msg_list' method='post' action='Msg'>
               &nbsp;&nbsp;&nbsp;查询：
        <select name='cate_sel'>
		    <option value='0' selected>所以分类</option>
             <?php if(is_array($list_cate)): $i = 0; $__LIST__ = $list_cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><option value='<?php echo ($list["cate_id"]); ?>|<?php echo ($list["bpath"]); ?>'>
                     <?php $spa =''; for($i=0;$i<$list['count'];$i++){ echo $spa.='&nbsp;'; }; echo $spa; echo ($list["cate_name"]); ?>
                </option><?php endforeach; endif; else: echo "" ;endif; ?>
       </select>
       <select name='audit'>
       		<option value=''>审核与否</option>
       		<option value='0'>未审核</option>
       		<option value='1'>已经审核</option>
       </select>
       <select name='mk_top'>
       		<option value=''>置顶与否</option>
       		<option value='0'>未置顶</option>
       		<option value='1'>置顶</option>
       </select>
       编号：<input type='text' name='id' width='100px' />
       发布者：<input type='text' name='username' width='100px' />
       <input name='sub' type='submit' value='search'/>
       </form>
        </div>
        <div style='width:900px;height:5px;background-color:#a1d2ff;margin-top:8px;'></div>
           <div style='width:850px;margin-right:auto;margin-left:auto;'>
              <table cellpadding="3" cellspacing="1">
  <tbody>

  <tr>
    <th>
      <input class='box' type="checkbox" checked></th>
      <th width='90px'><a href='Msg?order=id' title='点击按编号数排序'>编号(5)</a></th>
      <th width='90px'>发布者(5)</th>
      <th width='100px'>得分(5)</th>
      <th width='100px'>内容类型(5)</th>
      <th>发布内容(16)</th>
      <th><a href='Msg?order=comm_count' title='点击按评论数排序'>评论数</a></th>
      <th><a href='Msg?order=time' title='点击按编号数排序'>发布时间</a></th>
      <th width='120px'>del，top，audit</th>

  </tr>

  <form name='che_box' method='post' action='check'>
  <?php if(is_array($list_msg)): $i = 0; $__LIST__ = $list_msg;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr>
		         <td width='20x'><input value='<?php echo ($list["id"]); ?>' name='checkbox[]' type="checkbox"></td>
	              <td>GDQY<?php echo ($list["id"]); ?></td>
	              <td><?php echo ($list["username"]); ?></td>
	              <td><?php echo ($list["get"]); ?>分</td>
	              <td><?php echo ($list["cate_name"]); ?></td>

	              <?php if(strlen($list['content']) <= 30){ echo '<td width="200px"><a title="'.$list['content'].'">'.$list['content'].'</a></td>'; }else{ echo '<td width="200px"><a title="'.$list['content'].'">'.substr_replace($list['content'],'...',15).'</a></td>'; } echo ' <td>'.$list['comm_count'].'</td>'; echo '<td width="80px">'.date('Y-m-d',$list['time']).'</td>' ?>

                 <td style="text-align:center">
                   <a href='del_msg?id=<?php echo ($list["id"]); ?>'><image src='__APP__/images/icon_trash.gif'></a>&nbsp;
                   <?php if($list['mk_top']=='1'){ echo "<a href='mktop_msg?t=0&id=".$list[id]."'>noT</a>"; }else{ echo "<a href='mktop_msg?t=1&id=".$list[id]."'><image src='__APP__/images/mktop.gif'></a>"; } ?>

                   <?php if($list['audit']=='1'){ echo "<a href='audit_msg?t=0&id=".$list[id]."'><image src='__APP__/images/icon_drop.gif'></a>"; }else{ echo "<a href='audit_msg?t=1&id=".$list[id]."'><image src='__APP__/images/icon_audit.gif'></a>"; } ?>
                   <a style='font-size:10px;' href='comm_detail?id=<?php echo ($list["id"]); ?>' class="thickbox" >评论</a>
                   </td>


              </tr><?php endforeach; endif; else: echo "" ;endif; ?>
    <tr>
    <td>
      <input type="image" border="0" name="all_del_sub" src="__APP__/images/icon_trash.gif"  alt="删除全选" onClick="this.form.submit()">
    </td>
    <td style='text-align:right;font-size:12px;'>mk_top：</td>
    <td>
      <select name='all_top'>
	      <option value='1'>mk_top</option>
	      <option value='0'>no_top</option>
      </select>

    </td>
    <td style='text-align:left;font-size:12px;'><input name='all_top_sub' type='submit'width='15px' value='ok'>&nbsp;&nbsp;&nbsp;&nbsp;审核：</td>
    <td>
      <select name='all_audit'>
	      <option value='1'>audit</option>
	      <option value='0'>no_audit</option>
      </select>
     </td>
     <td><input name='all_audit_sub' type='submit' width='15px' value='ok'></td>

    </tr>
	</form>
  </tbody>

  </table>
  <?php echo ($page); ?>
          </div>
</div>

</body>
</html>